package com.bobi.ecofavor.mapper;

import com.bobi.ecofavor.model.domain.FuelCard;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 加油卡 Mapper 接口
 * </p>
 *
 * @author wenyuan
 * @since 2023-10-21
 */
@Repository
public interface FuelCardMapper extends BaseMapper<FuelCard> {

    List<FuelCard> selectByUserId(@Param("userId") Integer integer);

    Integer updateByUserId(@Param("fuelCard") FuelCard fuelCard);

    Integer updateAmount(@Param("fuelCard") FuelCard fuelCard);

}
